package com.test.command;

/**
 * Created by user on 17/8/14.
 */
public class CommandChannel implements Command {
    private Tv myTv;
    private int channel;

    public CommandChannel(Tv tv, int channel) {
        myTv = tv;
        this.channel = channel;
    }

    public void execute() {
        myTv.changeChannel(channel);
    }

}
